﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CUREBusinessLogicLayer;
using System.Data;
namespace CURE.SystemManagement
{
    public partial class MenuModify : System.Web.UI.Page
    {
        #region
        string menuId;

        public string MenuId
        {
            get { return menuId; }
            set { menuId = value; }
        }
        string menuName;

        public string MenuName
        {
            get { return menuName; }
            set { menuName = value; }
        }

        string menuSort;
        public string MenuSort
        {
            get { return menuSort; }
            set { menuSort = value; }
        }
        #endregion
        MenuBll menuBll = new MenuBll();
        protected void Page_Load(object sender, EventArgs e)
        {
            menuId = Request.QueryString["id"];
            EditMenuData();
        }
        protected void EditMenuData()
        {
            DataTable dt = menuBll.GetMenuById(menuId);
            if (dt != null && dt.Rows.Count > 0)
            {
                menuName = dt.Rows[0]["action_columnname"].ToString();
                menuSort = dt.Rows[0]["action_colsort"].ToString();
            }
        }
    }
}